package com.ruoyi.performance.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.performance.api.factory.RemotePotentialFallbackFactory;

import com.ruoyi.performance.domain.PotentialClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(contextId = "RemotePotentialApi",
        path = "/clients",
        value = ServiceNameConstants.POTENTIAL_SERVICE, fallbackFactory = RemotePotentialFallbackFactory.class)
public interface RemotePotentialApi {
    @GetMapping("/list")
    public TableDataInfo list(PotentialClients potentialClients);

}
